﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    Inherits="masterdata_Product_Uoms_List" CodeFile="Product_Uoms_List.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>规格转换维护</title>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle">
                    规格转换列表 产品:
                    <asp:Label ID="lblProductCode" runat="server"></asp:Label>&nbsp;
                    <asp:Label ID="lblProductName" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="GridView1" runat="server" AutoGenerateColumns="False"
                        EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                        OnRowDataBound="Grid_RowDataBound" EnableEmptyContentRender="true">
                        <HeaderStyle CssClass="titlist" />
                        <Columns>
                            <asp:BoundField HeaderText="代码" DataField="UomsCode" />
                            <asp:HyperLinkField HeaderText="规格转换" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Product_UOM_Maintain.aspx?id={0}"
                                DataTextField="DENOMINATOR" />
                            <asp:HyperLinkField HeaderText="重量" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Product_UOM_Maintain.aspx?id={0}"
                                DataTextField="WEIGHT" />
                            <asp:HyperLinkField HeaderText="体积" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Product_UOM_Maintain.aspx?id={0}"
                                DataTextField="VOLUME" />
                            <asp:TemplateField HeaderText="出售" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center">
                                <ItemTemplate>
                                    <b>
                                        <%# (bool)Eval("IsSell") ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%></b>
                                </ItemTemplate>
                            </asp:TemplateField>
                              <asp:TemplateField HeaderText="有效" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center">
                                <ItemTemplate>
                                    <b><%# (bool)Eval("IsValid") ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%></b>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings Visible="true" />
                    </asp:GridView>
                    <br />
                </td>
            </tr>
        </table>
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle" colspan="6">
                    规格转换维护
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    规格代码:
                </td>
                <td>
                    <asp:DropDownList ID="ddlUoms" runat="server" Width="130">
                    </asp:DropDownList>
                    <span class="keyword">*</span>
                </td>
                <td class="tablefield">
                    规格转换:
                </td>
                <td>
                    <input id="txtNum" type="text" runat="server" /><span class="keyword">*</span><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNum" ErrorMessage="不能为空!"></asp:RequiredFieldValidator>
                </td>
                <td class="tablefield">
                    有效:
                </td>
                <td>
                    <input id="chkYesNo" runat="server" type="checkbox" checked="checked" />&nbsp;
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    重量(KG):
                </td>
                <td>
                    <input id="txtWeight" type="text" runat="server" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="重量应为数字"
                        ValidationExpression="^(\d{1,3}(,\d\d\d)*(\.\d+)?|\d+(\.\d+)?)$" ControlToValidate="txtWeight"></asp:RegularExpressionValidator>
                </td>
                <td class="tablefield">
                    体积(M3):
                </td>
                <td>
                    <input id="txtVal" type="text" runat="server" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="体积应为数字"
                        ValidationExpression="^(\d{1,3}(,\d\d\d)*(\.\d+)?|\d+(\.\d+)?)$" ControlToValidate="txtVal"></asp:RegularExpressionValidator>
                </td>
                <td class="tablefield">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="buttonarea" colspan="6">
                    <asp:Button ID="btnAdd" runat="server" class="wsd_button2" Text="提  交" OnClick="btnAdd_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" class="wsd_button2" Text="返  回" CausesValidation="false"
                        OnClick="btnBack_Click" />
                </td>
            </tr>
        </table>
    </div>
 </asp:Content>